#include "Accpetor.hpp"
#include "TcpConnect.hpp"
#include <iostream>

using std::cout;
using std::endl;



int main()
{
    wd::Acceptor acceptor(12345,"0.0.0.0");
    acceptor.ready();
    int clientfd = acceptor.accept();

    wd::TcpConnection tcpconn(clientfd);

    while(1){
        string str = tcpconn.receive();
        tcpconn.send(str);

    }


    return 0;
}

